#include "SimpleProfiler.hpp"
#include "Logger.hpp"

SimpleProfiler::SimpleProfiler ():
m_clock()
{
}
SimpleProfiler::~SimpleProfiler ()
{
}
		
SimpleProfiler& SimpleProfiler:: instance(unsigned int index)
{
	static SimpleProfiler profilers[10];
	return profilers[index];
}

void SimpleProfiler::start()
{
	m_clock.Reset();
}
void SimpleProfiler::stop()
{
	LogInfo << "Profiler's result :" << m_clock.GetElapsedTime()*1000.f << "in ms." << LogEnd;
}		


